<?php

namespace H5\Model;
use Think\Model\ViewModel;

class MerchViewModel extends ViewModel {

    public $viewFields = array(
        'Merch'=>array('*','_type'=>'LEFT'),
        'Merch_categoryC'=>array('name'=>'category_name','_type'=>'LEFT','_table'=>'wf_merch_category', '_on'=>'Merch.cid=Merch_categoryC.cate_id'),
        'Merch_categoryF'=>array('name'=>'floor_name','_table'=>'wf_merch_category', '_on'=>'Merch.fid=Merch_categoryF.cate_id'),
    );
}